package dk.seqSite {
	import dk.seqSite.tree.TreeNode;

	import flash.events.Event;

	/**
	 * @author Josef Kj�rgaard
	 */
	public class SeqSiteBaseEvent extends Event {
		
		/**
		 * Dispatched when the GA module has been loaded and is ready.
		 */
		public static var GOOGLE_ANALYTICS_BRIDGE_READY : String="googleAnalyticsBridgeReady";
		public static var READY : String="ready";
		public static var TREE_CONTROL_STARTED : String="treeControlStarted";
		public static const NEW_TREE_NODE_SELCTED : String = "NEW_TREE_NODE_SELCTED";
		public static const FIRST_NODE_SELECTED : String = "FIRST_NODE_SELECTED";
		private var _oTNTarget : TreeNode;

		public function SeqSiteBaseEvent(type : String, oTNTarget:TreeNode=null, bubbles : Boolean = false, cancelable : Boolean = false) {
			_oTNTarget = oTNTarget;
			super(type, bubbles, cancelable);
		}
		
		override public function clone() : Event {
			return new SeqSiteBaseEvent(type, _oTNTarget, bubbles, cancelable);
		}
		
		public function get oTNTarget() : TreeNode {
			return _oTNTarget;
		}
	}
}
